<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/styles/general.css"/>
<link rel="stylesheet" type="text/css" href="/styles/main.css" />
<link rel="stylesheet" type="text/css" href="/styles/validator.css"></link>
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript"> 
$(document).ready(function(){
	$.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
	$("#port").formValidator({onshow:"请输入服务端口",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#app").formValidator({onshow:"请输入应用名称",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#delayloop").formValidator({onshow:"请输入健康检查间隔",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#persistencetimeout").formValidator({onshow:"请输入会话保持时间",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
});
</script>
<title></title>
</head>
<body>
<h1>
<span class="action-span"><a href="/lvsvip">管理虚拟IP池</a></span>
<span class="action-span1">修改虚拟IP池 </span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/lvsvip/modify/" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <input name='id' id='id' type="hidden" value="$id" /> 
  <table width="100%" id="general-table">
     <tr>
        <td class="label">用途：</td>
        <td>
			{form select * usetype usetype $info['usetype'] * * $usetypes}
        </td>
        <td><div id='usetypeTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">数据中心IP：</td>
        <td>
			{form select * datacenterid datacenterid $info['datacenterid'] * * $datacenters}
        </td>
        <td><div id='datacenteridTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">VIP：</td>
        <td>
			{form text * virtualipaddress virtualipaddress $info['virtualipaddress']}
        </td>
        <td><div id='virtualipaddressTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">服务端口：</td>
        <td>
			{form text * port port $info['port']}
        </td>
        <td><div id='portTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">应用名称：</td>
        <td>
			{form text * app app $info['app']}
        </td>
        <td><div id='appTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">健康检查间隔：</td>
        <td>
			{form text * delayloop delayloop $info['delayloop']}
        </td>
        <td><div id='delayloopTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">调度算法：</td>
        <td>
			{form select * lbalgo lbalgo $info['lbalgo'] * * $lbalgos}
        </td>
        <td><div id='lbalgoTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">转发规则：</td>
        <td>
			{form radio * lbkind lbkind $info['lbkind'] * * $lbkinds}
        </td>
        <td><div id='lbkindTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">会话保持时间：</td>
        <td>
			{form text * persistencetimeout persistencetimeout $info['persistencetimeout']}
        </td>
        <td><div id='persistencetimeoutTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">协议：</td>
        <td>
			{form radio * protocol protocol $info['protocol'] * * $protocols}
        </td>
        <td><div id='protocolTip' style="width:250px"></div></td>
     </tr>
  </table>
  
   <div class="button-div">
        <input type="submit" value="&nbsp;确&nbsp;定&nbsp;" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" />
   </div>
      
  </form>
</div>
{template 'footer.html'}
</body>
</html>
